package com.hushan.elevator.service;

import com.hushan.elevator.model.RiskInfo;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: zzy
 * @Date: 2024/10/23 0:03
 * @Title:
 * @Version:
 * @Package: com.hushan.elevator.service
 */
public interface RiskInfoService {
    List<RiskInfo> findAllRiskInfos();
    RiskInfo findRiskInfoById(Integer id);
    RiskInfo findBySerialNumber(String serialNumber);
    List<RiskInfo> findByIsDeleted(Boolean isDeleted);

    void addRiskInfo(RiskInfo riskInfo) throws Exception;

    void updateRiskInfo(RiskInfo riskInfo) throws Exception;

    void deleteRiskInfo(Integer id) throws Exception;
}